#ifndef JOINRESPONSEPACKET_H
#define JOINRESPONSEPACKET_H

#include "AbstractPacket.h"
#include "core/Node.h"

#include <QList>
#include <QImage>

class JoinResponsePacket : public AbstractPacket
{
public:
    JoinResponsePacket(const QList<Node> & nodeList, quint16 width, quint16 height, const QImage & image);
    ~JoinResponsePacket();

    virtual PacketType getPacketType() const;

    QList<Node> * getNodeList() { return nodeList; }

    quint16 getWidth() { return width; }
    quint16 getHeight() { return height; }

    const QImage & getImage() { return image; }
private:
    QList<Node> *nodeList;
    quint16 width, height;
    QImage image;
};

#endif // JOINRESPONSEPACKET_H
